package com.kaoshi.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaoshi.entity.Jkjl;
import com.kaoshi.mapper.JkjlMapper;
import com.kaoshi.service.IJkjlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2024-10-25
 */
@Service
public class JkjlServiceImpl extends ServiceImpl<JkjlMapper, Jkjl> implements IJkjlService {



    @Override
    public List<Jkjl> getInfo(Integer id) {
        QueryWrapper<Jkjl> jkjlQueryWrapper = new QueryWrapper<>();
        jkjlQueryWrapper.eq("pid",id);
        return baseMapper.selectList(jkjlQueryWrapper);
    }
}
